#include "detectorfactory.h"
#include <idetector.h>
#include <facetracker.h>
#include <handtracker.h>
#include <contourdetector.h>
#include <edgedetector.h>

DetectorFactory::DetectorFactory()
{
}

IDetector* DetectorFactory::getDetector(int type)
{
    switch ( type )
    {
        case FACE_TRACKING:
            return new FaceTracker();
        case HAND_TRACKING:
            return new HandTracker();
        case CONTOUR_DETECTION:
            return new ContourDetector ();
        case EDGE_DETECTION:
            return new EdgeDetector ();
        default: return new FaceTracker ();
    }
}
